<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/oa/Public/css/global.css" />
<script type="text/javascript" src="/oa/Public/js/jquery.js"></script>
<title>OA办公自动化应用系统</title>
<style type="text/css">
body{
	border-bottom: 1px solid #e0e0e0;
}
</style>
</head>
<body>
<div id="menu">
	<ul>
	<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="javascript:;" class="menu_li" onclick="menuview('<?php echo ($vo["action"]); ?>',this,<?php echo ($vo["menu_id"]); ?>)"><div class="menu_ico<?php echo ($vo["menu_id"]); ?>"></div><div class="menu_name"><?php echo ($vo["menu_name"]); ?></div></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
	</ul>
</div>
</body>
<script type="text/javascript">
	$(document).ready(function(e) {
        //menuview('MyOffice',$('#menu').find('a').eq(0));//默认选中第一个
        $('#menu').find('a').attr('onfocus','this.blur();');
    });
	function menuview(action,msg,menu_id){
		$('#menu').find('a').css('background-color','#f2f2f2');
		$(msg).css('background-color','#FFF');
		
		parent.main.location="/oa/index.php/"+action+"/way?menu_id="+menu_id;	
	}
	function ready(){
		document.location = document.location.href.replace('#', '');
	}
</script>
</html>